package com.hxx.service;

import com.hxx.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ISysUserService {
    /**
     * 根据用户名获取
     * @param sysUser
     * @return
     */
    SysUser getUserByUsernameAndPwd(SysUser sysUser);

    /**
     * 获取所有用户
     * @param username
     * @return
     */
    List<SysUser> getAllUsers(String username, Integer pageNum, Integer pageSize);


    SysUser getUserById ( Integer id);

    int addUser (SysUser sysUser);

    int editUser (SysUser sysUser);

    int deleteUserById ( Integer id);

    int deleteUserAll( List<String> ids);

    SysUser  getUserByUsername(String username);
}
